# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=goofuzz
_pkgname=GooFuzz
pkgver=1.2.6.r0.gf6fa9e5
pkgrel=1
pkgdesc='A Bash script that uses advanced Google search techniques to obtain sensitive information in files or directories without making requests to the web server.'
arch=('any')
groups=('blackarch' 'blackarch-fuzzer' 'blackarch-recon' 'blackarch-scanner')
url='https://github.com/m3n0sd0n4ld/GooFuzz'
license=('GPL3')
depends=('curl' 'sed')
makedepends=('git')
source=("$pkgname::git+https://github.com/m3n0sd0n4ld/$_pkgname")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 $_pkgname "$pkgdir/usr/bin/$pkgname"
  cp -a wordlists "$pkgdir/usr/share/$pkgname"
}

